home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / Sessions / Completions / Completions Source / Files / FileReadingPath.h < prev    next >
Encoding:
Text File  |  1998-06-15  |  529 b   |  30 lines  |  [TEXT/CWIE]

  1. // FileReadingPath.h
  2.  
  3. #ifndef FileReadingPath_h
  4. #define FileReadingPath_h
  5.  
  6. #ifndef Integers_h
  7. #include "Integers.h"
  8. #endif
  9.  
  10. class FileReadingPath
  11.   {
  12.     private:
  13.         int16 refNum;
  14.     
  15.         // not implemented:
  16.             FileReadingPath( const FileReadingPath& );
  17.             void operator=( const FileReadingPath& );
  18.         
  19.     public:
  20.         FileReadingPath()                    : refNum( 0 )    {}
  21.         ~FileReadingPath();
  22.         
  23.         bool IsOpen() const                { return refNum != 0; }
  24.         
  25.         int16 RefNum() const                { return refNum; }
  26.         void SetRefNum( int16 file )    { refNum = file; }
  27.   };
  28.  
  29. #endif
  30.